]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st: initialize static variables to NULL
authorCosimo Cecchi <cosimoc@gnome.org>
Tue, 6 Jun 2017 21:27:00 +0000 (14:27 -0700)
committerCosimo Cecchi <cosimoc@gnome.org>
Wed, 14 Jun 2017 20:58:58 +0000 (13:58 -0700)
https://bugzilla.gnome.org/show_bug.cgi?id=783484

src/st/st-entry.c
src/st/st-im-text.c

index 7ccf6bd7b296d472cdd9dfc798c6abadba0f5eb3..152f3eb8e95bd9824544a7496db7fff23fb15b2e 100644 (file)
@@ -718,8 +718,8 @@ st_entry_key_focus_in (ClutterActor *actor)
   clutter_actor_grab_key_focus (priv->entry);
 }
 
-static StEntryCursorFunc cursor_func;
-static gpointer          cursor_func_data;
+static StEntryCursorFunc cursor_func = NULL;
+static gpointer          cursor_func_data = NULL;
 
 /**
  * st_entry_set_cursor_func: (skip)
index 5f86f88b9fcf65115381403a2c6e2f222dfca82a..6498cfb5da2e855a1b1891f52ff354a3bf0ea927 100644 (file)
@@ -202,7 +202,7 @@ st_im_text_get_paint_volume (ClutterActor       *self,
   return clutter_paint_volume_set_from_allocation (volume, self);
 }
 
-static GdkWindow *event_window;
+static GdkWindow *event_window = NULL;
 
 void
 st_im_text_set_event_window (GdkWindow *window)